def yuefen(a,b):
    max_num=1
    for i in range(2,min(a,b)+1):
        if a%i==0 and b%i==0 and i>max_num:
            max_num=i
    return [a//max_num,b//max_num]
print(yuefen(18.0,36.0)[0])